﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;

namespace MyCommon.Filter
{
    public class ApiExceptFilter : ExceptionFilterAttribute
    {
        public override void OnException(ExceptionContext context)
        {
            System.Console.WriteLine("------OnException------");
            //context.Result = new RedirectResult("/error/500");
            base.OnException(context);
        }
    }
}
